package com.minjiang.blog.service;

import com.minjiang.blog.mode.Blog;
import com.minjiang.blog.queryvo.*;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@SuppressWarnings("all")
public interface BlogService {
//    ShowBlog getBlogById(Long id);

    List<BlogQuery> getAllBlog();

    Blog getBlogById(Long id);

    int saveBlog(Blog blog);

    int updateBlog(Blog blog);

    int deleteBlog(Long id);

    List<BlogQuery> getBlogBySearch(SearchBlog searchBlog);

    Blog getBlogByName(@Param("title") String title);

}
